<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		<ul class="breadcrumb">
			<li>
				<i class="icon-home home-icon"></i>
				<a href="#">系统首页</a>
			</li>
			<li class="active">
				订单列表
			</li>
           
		</ul><!-- .breadcrumb -->
	</div>
	<!-- Main content -->
	<div class="page-content">
    	<div class="row">
    	    <div class="page-header">
    			<h1>证列表</h1>
    		</div>
    		<div class=" col-md-12 col-sm-12 col-xs-12 form">
                <div class="row">
                <!--
                <form action="<?php echo base_url().'admin/activity/watch_oil_order'?>" method="get">
                    <div class="wh">
                    	<label>订单号：</label>
                        <input type="text" name="order_no" value="<?php if (isset($order_no))echo $order_no;?>" />
                    </div>
                    <div class="wh">
                    	<label>手机号码：</label>
                        <input type="text"  name="user_phone" value="<?php if (isset($user_phone))echo $user_phone;?>"/>
                    </div>
                    <div class="wh">
                        <button class="btn btn-sm btn-info" type="submit"><i class="icon-search"></i>查询</button>
                    </div> 
                </form>-->
                </div>
            </div>
            <input type="hidden" name="upid" id="upid" value=""/>
            <div class="col-xs-12 margin_t margin_b">
				<div class="table-responsive  tab">
					<table id="sample-table-1" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								
								<th>订单号</th>
                               
                                <th>手机号</th>
                                <th>姓名</th>
                                <th>地址</th>
                                <th>付款状态</th>
                                <th>发货状态</th>
                                <th>创建时间</th>
                               
                                <th style="width: 23%;">操作</th>
							</tr>
						</thead> 
						<tbody>
						<?php if (isset($result)&&count($result)>0){
                            	foreach ($result as $app){
                            	?>
							<tr>
								
								
                                <td><p><?php echo $app['order_no'];?></p></td>
                                
                                <td><p><?php echo $app['user_mobile'];?></p></td>
                                <td><p><?php echo $app['real_name'];?></p></td>
                                <td><p><?php echo $app['ad'];?></p></td>
                              
                                <td><p><?php if($app['payment_status']==1){echo '已付款';}else{echo '未付款';}?></p></td>
                                <td><p><?php if($app['goods_status']==1){echo '已发货';}else{echo '未发货';}?></p></td>
                                <td><p><?php echo $app['create_time'];?></p></td>
                                <td><p>
                                <?php if($app['goods_status']==0):?><a class="btn btn-sm btn-info" href="javascript:if(confirm('是否确定发货?')){window.location.href='<?php echo base_url().'admin/activity/send_goods/'.$app['order_no'];?>'}"><i class="icon-edit"></i>发货</a><?php endif;?>
                                </p>
                                </td>
    						</tr>
    						<?php }
                            }else{?>
                            <tr>
                            	<td colspan="9">无数据</td>
                            </tr>
                            <?php }?>
                            </tbody>
                         </table>
                     </div><!-- /.table-responsive -->
				</div>
                
            </div><!-- /.row -->
		</div><!-- /.page-content -->
	</div><!-- /.main-content -->
	<div id="delModal" class="modal fade" role="dialog" aria-hidden="true">
		<div class="modal-dialog" style="width: 300px">
			<div class="modal-content">
				<div class="modal-header">
				  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				  <h3>提示信息</h3>
				</div>
				<div class="modal-body">
				  <p>确定删除该身份认证审核吗？</p>
				</div>
				<div class="modal-footer">
				  <a id="delbtn" href="#" class="btn btn-danger">确定</a>
				  <a href="#" class="btn btn-info" data-dismiss="modal" aria-hidden="true">取消</a>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	function delmodal(id){
		$("#delbtn").attr('href','<?php echo base_url().'admin/user/del_check/'?>'+id);
	    $('#delModal').modal('show');
	}
	</script>